﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Electronic_work_order.Model;
using Electronic_work_order.Interfacess.OA_Agency;
namespace Electronic_work_order.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class OA_AgencysController : ControllerBase
    {
        private readonly Interfacess_Agency _agency;

        public OA_AgencysController(Interfacess_Agency agency)
        {
            _agency = agency;
        }
        [HttpGet]
        [Route("/[controller]/Agency")]
        public IEnumerable<object> Agency()
        {
            return _agency.Agency();
        }
    }
}
